package com.outstanding.his.pretreat.service.impl;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;

import com.outstanding.his.pretreat.dao.IPretreatDao;
import com.outstanding.his.pretreat.domain.Predrug;
import com.outstanding.his.pretreat.domain.Pretreat;
import com.outstanding.his.pretreat.service.IPretreatService;

public class PretreatService implements IPretreatService{
	
	@Autowired
	public IPretreatDao pretreatDao;
	

	public void setPretreatDao(IPretreatDao pretreatDao) {
		this.pretreatDao = pretreatDao;
	}

	@Override
	public Pretreat submitPretreat(Pretreat pretreat) {
		pretreat = this.pretreatDao.submitPretreat(pretreat);
		return pretreat;
	}

	@Override
	public Pretreat getPretreat(final Integer pretreatId) {
		return this.pretreatDao.getPretreat(pretreatId);
	}
	
	@Override
	public Pretreat getPretreatByPatientId(Integer patientId) {
		// TODO Auto-generated method stub
		return this.pretreatDao.getPretreatByPatientId(patientId);
	}

	@Override
	public Predrug createPredrug(Predrug predrug) {
		predrug = this.pretreatDao.createPredrug(predrug);
		return predrug;
	}
	
	@Override
	public void deletePredrug(Predrug predrug) {
		this.pretreatDao.deletePredrug(predrug);
	}

	@Override
	public Predrug getPredrug(Integer predrugId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Collection<Predrug> getPredrugListByPatientId(Integer predrugId) {
		// TODO Auto-generated method stub
		return null;
	}

	

	

}
